package com.sniper.web.config;

import com.sniper.model.AdminRight;
import com.sniper.model.BaseEntity;
import org.joda.time.DateTime;

import java.util.List;

public class BaseHref extends BaseEntity {
    //头部logo
    private String headerLogo;
    //域名根目录=无后缀域名
    private String baseHref;
    //域名
    private String webUrl;
    //操作url
    private String url;
    private String ip;
    private String menuId;
    private String pageTitle;
    private String zTreeMenu;
    private String adminPath;
    private AdminRight adminRight;
    private int nowYear;
    private boolean admin;
    private List<String> menuBar;

    public String getPageTitle() {
        return pageTitle;
    }

    public void setPageTitle(String pageTitle) {
        this.pageTitle = pageTitle;
    }

    public String getBaseHref() {
        return baseHref;
    }

    public void setBaseHref(String baseHref) {
        this.baseHref = baseHref;
    }

    public String getWebUrl() {
        return webUrl;
    }

    public void setWebUrl(String webUrl) {
        this.webUrl = webUrl;
    }

    public BaseHref(String baseHref) {
        super();
        this.baseHref = baseHref;
    }

    public void setzTreeMenu(String zTreeMenu) {
        this.zTreeMenu = zTreeMenu;
    }

    public String getzTreeMenu() {
        return zTreeMenu;
    }

    public void setAdminPath(String adminPath) {
        this.adminPath = adminPath;
    }

    public String getAdminPath() {
        return adminPath;
    }

    public void setAdminRight(AdminRight adminRight) {
        this.adminRight = adminRight;
    }

    public AdminRight getAdminRight() {
        return adminRight;
    }

    public int getNowYear() {
        return nowYear;
    }

    public boolean isAdmin() {
        return admin;
    }

    public void setAdmin(boolean admin) {
        this.admin = admin;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public BaseHref() {

        DateTime dateTime = DateTime.now();
        nowYear = dateTime.getYear();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<String> getMenuBar() {
        return menuBar;
    }

    public void setMenuBar(List<String> menuBar) {
        this.menuBar = menuBar;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public void setNowYear(int nowYear) {
        this.nowYear = nowYear;
    }


    public String getHeaderLogo() {
        return headerLogo;
    }

    public void setHeaderLogo(String headerLogo) {
        this.headerLogo = headerLogo;
    }
}
